﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="TabWithControlsAdvanced"
                Location="CommandUI.Ribbon"
                Title="Tab With Controls">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Tabs._children">
          <Tab Id="Ribbon.TabWithControlsAdvanced"
               Title="My Tab With Content"
               Description="This is my tab!"
               Sequence="300">
            <Scaling Id="Ribbon.TabWithControlsAdvanced.Scaling">
              <MaxSize Id="Ribbon.TabWithControlsAdvanced.Scaling.DemoGroupStaticLayout1.MaxSize" Sequence="10" GroupId="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout1" Size="Large" />
              <MaxSize Id="Ribbon.TabWithControlsAdvanced.Scaling.DemoGroupStaticLayout2.MaxSize" Sequence="20" GroupId="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout2" Size="Large" />
              <MaxSize Id="Ribbon.TabWithControlsAdvanced.Scaling.DemoGroupFlexibleLayout.MaxSize" Sequence="30" GroupId="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout" Size="LargeLarge" />
              <Scale   Id="Ribbon.TabWithControlsAdvanced.Scaling.DemoGroupFlexibleLayout.MediumLarge" Sequence="70" GroupId="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout" Size="MediumLarge" />
              <Scale   Id="Ribbon.TabWithControlsAdvanced.Scaling.DemoGroupFlexibleLayout.SmallSmall" Sequence="80" GroupId="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout" Size="SmallSmall" />
              <Scale   Id="Ribbon.TabWithControlsAdvanced.Scaling.DemoGroupFlexibleLayout.Popup" Sequence="90" GroupId="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout" Size="Popup" />
            </Scaling>
            <Groups Id="Ribbon.TabWithControlsAdvanced.Groups">
              <Group Id="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout1"
                     Title="Demo Group Static Layout"
                     Sequence="10"
                     Template="Ribbon.Templates.TwoLargeControls">
                <Controls Id="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout1.Controls">
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout1.MyFirstButton"
                          LabelText="Click Me"
                          Description="Demo Button"
                          Sequence="10"
                          TemplateAlias="c1"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout1.MySecondButton"
                          LabelText="Click Me 2"
                          Description="Demo Button 2"
                          Sequence="20"
                          TemplateAlias="c2"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                </Controls>
              </Group>
              <Group Id="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout2"
                     Title="Demo Group Static Layout 2"
                     Sequence="20"
                     Template="Ribbon.Templates.TwoRowsFourControls">
                <Controls Id="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout2.Controls">
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout2.MyFirstButton"
                          LabelText="Click Me"
                          Description="Demo Button"
                          Sequence="10"
                          TemplateAlias="c1"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout2.MySecondButton"
                          LabelText="Click Me 2"
                          Description="Demo Button 2"
                          Sequence="20"
                          TemplateAlias="c2"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout2.MyThirdButton"
                          LabelText="Click Me"
                          Description="Demo Button 3"
                          Sequence="30"
                          TemplateAlias="c3"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupStaticLayout2.MyFourthButton"
                          LabelText="Click Me 2"
                          Description="Demo Button 4"
                          Sequence="40"
                          TemplateAlias="c4"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                </Controls>
              </Group>
              <Group Id="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout"
                        Title="Demo Group Flexible Layout"
                        Sequence="30"
                        Template="Ribbon.Templates.Flexible2">
                <Controls Id="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout.Controls">
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout.MyFirstButton"
                          LabelText="Click Me"
                          Description="Demo Button"
                          Sequence="10"
                          TemplateAlias="o1"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout.MySecondButton"
                          LabelText="Click Me 2"
                          Description="Demo Button 2"
                          Sequence="20"
                          TemplateAlias="o1"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout.MyThirdButton"
                          LabelText="Click Me"
                          Description="Demo Button 3"
                          Sequence="30"
                          TemplateAlias="o1"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout.MyFourthButton"
                          LabelText="Click Me 2"
                          Description="Demo Button 4"
                          Sequence="40"
                          TemplateAlias="o2"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout.MyFifthButton"
                          LabelText="Click Me"
                          Description="Demo Button 5"
                          Sequence="50"
                          TemplateAlias="o2"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout.MySixthButton"
                          LabelText="Click Me 2"
                          Description="Demo Button 6"
                          Sequence="60"
                          TemplateAlias="o2"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAdvanced.DemoGroupFlexibleLayout.MyasdxthButton"
                          LabelText="Click Me 2"
                          Description="Demo Button 7"
                          Sequence="60"
                          TemplateAlias="o2"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />                </Controls>
              </Group>
            </Groups>
          </Tab>
        </CommandUIDefinition>
      </CommandUIDefinitions>
    </CommandUIExtension>
  </CustomAction>
</Elements>
